package com.awcall.iot.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.FieldFill;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wuhui
 * @since 2018-03-05
 */
@TableName("bd_statements")
public class Statements extends Model<Statements> {

    private static final long serialVersionUID = 1L;

    @TableId("statements_id")
	private Integer statementsId;
	private Double price;
	private Integer type;
	private String information;
	private Double balance;
	private String remark;
	private String description;
	@TableField("bank_id")
	private Integer bankId;
	@TableField("bank_name")
	private String bankName;
	@TableField("user_id")
	private Integer userId;
	@TableField("user_name")
	private String userName;
	@TableField("project_id")
	private Integer projectId;
	@TableField("project_name")
	private String projectName;
	@TableField(value = "created_at", fill = FieldFill.INSERT)
	private Date createdAt;
	@TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
	private Date updatedAt;

	@TableField(exist = false)
	private Date startDate;

	@TableField(exist = false)
	private Date endDate;

	@TableField(exist = false)
	private String typeName;

	public Integer getProjectId() {
		return projectId;
	}

	public Statements setProjectId(Integer projectId) {
		this.projectId = projectId;
		return this;
	}

	public String getProjectName() {
		return projectName;
	}

	public Statements setProjectName(String projectName) {
		this.projectName = projectName;
		return this;
	}

	public Integer getUserId() {
		return userId;
	}

	public Statements setUserId(Integer userId) {
		this.userId = userId;
		return this;
	}

	public String getUserName() {
		return userName;
	}

	public Statements setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	public Integer getBankId() {
		return bankId;
	}

	public Statements setBankId(Integer bankId) {
		this.bankId = bankId;
		return this;
	}

	public String getBankName() {
		return bankName;
	}

	public Statements setBankName(String bankName) {
		this.bankName = bankName;
		return this;
	}

	public String getTypeName() {
		return typeName;
	}

	public Statements setTypeName(String typeName) {
		this.typeName = typeName;
		return this;
	}

	public Double getPrice() {
		return price;
	}

	public Statements setPrice(Double price) {
		this.price = price;
		return this;
	}

	public Integer getType() {
		return type;
	}

	public Statements setType(Integer type) {
		this.type = type;
		return this;
	}

	public Date getStartDate() {
		return startDate;
	}

	public Statements setStartDate(Date startDate) {
		this.startDate = startDate;
		return this;
	}

	public Date getEndDate() {
		return endDate;
	}

	public Statements setEndDate(Date endDate) {
		this.endDate = endDate;
		return this;
	}

	public Integer getStatementsId() {
		return statementsId;
	}

	public Statements setStatementsId(Integer statementsId) {
		this.statementsId = statementsId;
		return this;
	}

	public String getInformation() {
		return information;
	}

	public Statements setInformation(String information) {
		this.information = information;
		return this;
	}

	public Double getBalance() {
		return balance;
	}

	public Statements setBalance(Double balance) {
		this.balance = balance;
		return this;
	}

	public String getRemark() {
		return remark;
	}

	public Statements setRemark(String remark) {
		this.remark = remark;
		return this;
	}

	public String getDescription() {
		return description;
	}

	public Statements setDescription(String description) {
		this.description = description;
		return this;
	}

	public Date getCreatedAt() {
		return createdAt;
	}

	public Statements setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
		return this;
	}

	public Date getUpdatedAt() {
		return updatedAt;
	}

	public Statements setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
		return this;
	}

	public static final String STATEMENTS_ID = "statements_id";

	public static final String REVENUE = "revenue";

	public static final String RECEIPTS = "receipts";

	public static final String INFORMATION = "information";

	public static final String BALANCE = "balance";

	public static final String REMARK = "remark";

	public static final String DESCRIPTION = "description";

	public static final String CREATED_AT = "created_at";

	public static final String UPDATED_AT = "updated_at";

	@Override
	protected Serializable pkVal() {
		return this.statementsId;
	}

	@Override
	public String toString() {
		return "Statements{" +
			", statementsId=" + statementsId +
			", price=" + price +
			", type=" + type +
			", information=" + information +
			", balance=" + balance +
			", remark=" + remark +
			", description=" + description +
			", createdAt=" + createdAt +
			", updatedAt=" + updatedAt +
			"}";
	}
}
